<div nz-row>


  <div nz-col nzSpan="12">
    <nz-tree
      #nzTreeComponent
      [nzData]="cd"
      (nzClick)="onClickNode($event)"
      [nzTreeTemplate]="nzTreeTemplate1"
      (nzContextMenu)="onClickNode($event)"
    ></nz-tree>

    <ng-template #nzTreeTemplate1 let-node  let-origin="origin">
      <span class="custom-node">
        <span  (contextmenu)="contextMenu($event, menu,node.key)">
          <i nz-icon ></i>
          <span class="folder-name">{{ node.title }}</span>
        </span>
      </span>
    </ng-template>




    <nz-dropdown-menu #menu="nzDropdownMenu" >
      <ul nz-menu>
        <li nz-menu-item  (click)="Add('M')">添加</li>
        <li nz-menu-item (click)="Update('M')">修改</li>
        <li nz-menu-item (click)="delete()">删除</li>
      </ul>
    </nz-dropdown-menu>






  </div>
</div>
